-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bump electron to the latest version 33.2.0 (WPB-11996) #8352
Conversation
electron/src/window/WindowUtil.ts
Outdated
if (baseWindow instanceof BrowserWindow) { | ||
baseWindow.webContents.send(channel, ...args); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe will be nice ot add some log if not exist ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try catch in there in case the window is undefined or the wrong type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No no.. I mean if there will be not !(baseWindow instanceof BrowserWindow) { console.error('baseWindow not exist in BrowserWindow')} or smth like that, because if will not exist will be hard to find issue :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about this? 8ee5b56
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
* chore: bump electron to 33.2.0 * chore: create helper function to send menu events to web content * runfix: use helper function to address electron api type change * chore: log helper function errors
chore: bump electron to the latest version 33.2.0 (WPB-11996) (#8352)
Description
Upgrade to the latest stable version of electron. https://github.com/electron/electron/releases/tag/v33.2.0
List of mjor version changes
Notable breaking change
This change electron/electron#43404 introduced in Electron 33 and backported to 32 and 31 require us to change our system menu click handler as the type of the target window changed from BrowserWindow to BaseWindow